package com.taotao.common.configuration;


import org.apache.activemq.command.ActiveMQTopic;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.jms.Topic;

/**
 * Created by zhang_xming on 2017/2/19.
 */
@Configuration
public class JmsConfiguration {
//    @Bean
//    public Queue queue() {
//        return new ActiveMQQueue("zxm.queue");
//    }
    @Bean
    public Topic topic() {
        return new ActiveMQTopic("item-add-topic");
    }
}
